package com.xnyzc.lhy.mis.controller.cmsapi.cashwithdrawal;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.result.cms.cashwithdrawal.OaDCashWithdrawalResults;
import com.xnyzc.lhy.mis.entity.result.cms.cashwithdrawal.OaDWithdrawalDetailsResults;
import com.xnyzc.lhy.mis.service.cms.cashwithdrawal.MisOaDCashWithdrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 提现记录
 *
 * @author zhaolijie
 * @date
 */
@RestController
@RequestMapping("/cms/cashwithdrawal")
public class MisOaDCashWithdrawalController {

    @Autowired
    private MisOaDCashWithdrawalService misOaDCashWithdrawalService;

    /**
     * 获取提现记录
     *
     * @param oaDCashWithdrawalResults
     * @return
     */
    @PostMapping(value = "/getOaDCashWithdrawalResultsList")
    public Rv getOaDCashWithdrawalResultsList(@RequestBody OaDCashWithdrawalResults oaDCashWithdrawalResults) {
        return misOaDCashWithdrawalService.getOaDCashWithdrawalResultsList(oaDCashWithdrawalResults);
    }

    /**
     * 获取 所有司机申请提现记录详细  可筛选
     * @param oaDWithdrawalDetailsResults
     * @return
     */
    @PostMapping(value = "/getOaDWithdrawalDetailsList")
    public Rv getOaDWithdrawalDetailsList(@RequestBody OaDWithdrawalDetailsResults oaDWithdrawalDetailsResults){
        return misOaDCashWithdrawalService.getOaDWithdrawalDetailsList(oaDWithdrawalDetailsResults);
    }

    /**
     * 财务对 单人转账和全部人转账
     * @param oaDWithdrawalDetailsResults
     * @return
     */
    @PostMapping(value = "/getOneOrAllTransferAccounts")
    public Rv getOneOrAllTransferAccounts(@RequestBody OaDWithdrawalDetailsResults oaDWithdrawalDetailsResults){
        return misOaDCashWithdrawalService.getOneOrAllTransferAccounts(oaDWithdrawalDetailsResults);
    }

    /**
     * 获取 提现处理状态字典
     * @return
     */
    @GetMapping(value = "/getSysDict")
    public Rv getSysDict() {
        return misOaDCashWithdrawalService.getSysDict();
    }

    /**
     * 导出提现记录
     * @param oaDCashWithdrawal
     * @return
     */
    @PostMapping(value = "/exportOaDCashWithdrawalResultsList")
    public Rv exportOaDCashWithdrawalResultsList(@RequestBody OaDCashWithdrawalResults oaDCashWithdrawal) {
        return misOaDCashWithdrawalService.exportOaDCashWithdrawalResultsList(oaDCashWithdrawal);
    }





}
